//
//  ShowCell.h
//  7.13苏宁框架
//
//  Created by lovena on 15/7/19.
//  Copyright (c) 2015年 lovena. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ShopModel.h"
@class ShowCell;
@protocol ShowCellDelegate <NSObject>

-(void)shopSubCount:(int)index;
-(void)shopAddCount:(int)index;
-(void)shopSelected:(UIButton *)btn;
@end
@interface ShowCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UIButton *selectedBtn;//选中按钮
@property (weak, nonatomic) IBOutlet UIImageView *icon;//图片
@property (weak, nonatomic) IBOutlet UIButton *addBtn;//增加
@property (weak, nonatomic) IBOutlet UILabel *name;//姓名
@property (weak, nonatomic) IBOutlet UIButton *subBtn;//减去
- (IBAction)clickSubBtn:(UIButton *)sender;//减少事件
- (IBAction)clickAddBtn:(UIButton *)sender;//增加事件
@property (weak, nonatomic) IBOutlet UIButton *buyCount;//购买事件
- (IBAction)clickSelectedBtn:(UIButton *)sender;//选中按钮
@property (weak, nonatomic) IBOutlet UILabel *price;//价钱
@property (weak, nonatomic) IBOutlet UILabel *oldprice;//以前价钱
@property(nonatomic,retain)ShopModel *smodel;
@property(nonatomic,weak)id<ShowCellDelegate>delegate;
+(id)CreateShopCell;
@end
